package simulator.ui;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

public class ResumeAction extends AbstractAction
{
   private static final long serialVersionUID = 1L;
   private SimulationController controller = null;

   public ResumeAction(SimulationController controller)
   {
      this.controller = controller;
      putValue(Action.NAME, "Resume");
   }
   
   public void actionPerformed(ActionEvent e)
   {
      System.out.println("Resume command...");
      
      controller.resume();
   }
}
